# -*- coding: utf-8 -*-
import os


class LocalConfig:
    PROJECT = "app"
    PROFILE = True
    PROJECT_PATH = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
    DEBUG = False
    ENV = "local"
    FLASK_DEBUG = 0

    # SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:root@localhost:3306/ry-vue?charset=utf8mb4"
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://zhaoolee:accountZhaooleePassword@101.37.36.112:3306/shujumulu?charset=utf8mb4"

    SQLALCHEMY_TRACK_MODIFICATIONS = True
    LOG_LEVEL = "DEBUG"
    SQLALCHEMY_ECHO = True

    SQLALCHEMY_RECORD_QUERIES = True
    DATABASE_QUERY_TIMEOUT = 0.5

    SMTP_TIMEOUT = 300

    SSL_SMTP = False

    LDAP_TIMEOUT = 15

    LDAP_ASYNC_TIMEOUT = 30
